<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>List</title>
</head>
<body>
<form action="/product" method="post">
    <label>Name：</label>
    <input type="text" name="name"/>
    <label>Price：</label>
    <input type="text" name="price"/>
    <input type="submit" Value="Search"/>
</form>
<table>
    <thead>
    <tr>
        <td>ID</td>
        <td>Name</td>
        <td>price</td>
    </tr>
    </thead>
    <tbody>
    <tr th:each="product:${products}">
        <td th:text="${product.id}"></td>
        <td th:text="${product.name}"></td>
        <td th:text="${product.price}"></td>
        <td><a th:href="@{product/update/{id}(id=${product.id})}">Update</a></td>
        <td><a th:href="@{product/delete/{id}(id=${product.id})}">Delete</a></td>
    </tr>
    </tbody>
    <div><a href="/product/create">Create</a></div>
</table>
</body>
</html>